package com.hzm.controller;

import com.hzm.service.VideoService;
import com.hzm.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: qy137-java
 * @description:
 * @author: 皇子明
 * @create: 2021-10-24 21:50
 **/
@RestController
@RequestMapping("/order/video")
@Api(tags = "视频模块")
public class VideoController {
    @Resource
    private VideoService videoService;
    @ApiOperation(value = "查看视频链接")
    @PostMapping("/queryAllVideoByCourseId/{id}")
    public Result queryAllVideoByCourseId(@PathVariable("id") @RequestBody String id){
        Result result = videoService.queryAllVideoByCourseId(id);
        return new Result(2000,"成功",result);
    }
}
